package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.excel.CategoryExcelDto;
import com.atguigu.spzx.model.entity.category.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/2
 * description：
 */
@Mapper
public interface CategoryMapper {
    List<Category> getCategoryByPid(Long parentId);

    Boolean hasChildren(Long id);

    boolean exist(CategoryExcelDto data);

    void batchInsert(List<CategoryExcelDto> list);

    List<CategoryExcelDto> selectAll();

    Category getById(Long id);
}
